#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int m = 20;
	int count=0;
	for (m = 20; m != 0; )
	{
		m--;
		count++;
		if (count % 2 == 0)
			m++;
	}
	printf("%d", count);

}